<%-- 
    Document   : registerForm
    Created on : 2008-2-24, 10:11:21
    Author     : Hovanessyan
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
 

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="pa" uri="http://agil.com"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>



<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    
        <title>Register Form</title> 
        <link type="text/css" rel="stylesheet" href="/photo-album/styles/registerForm.css" />
        <script src="/photo-album/jsscript/validation.js" type="text/javascript"> </script> 
    </head>
    <body>
        <div> 
            <h1>Регистрационна форма за персонален фото-албум</h1>
            <br />
            Въведете личните си данни 
            <br /> 
            <strong>Удебелените</strong> полета са задължителни
            <br />
            <c:if test="${not empty sessionScope.user}">
            	<br />
        	    <c:out value="Потребителското име е заето." />
            </c:if>
            <form action="../RegisterServlet" method="post" id="registerForm" onsubmit="validateForm()">
                <div class="persForms">
                	<div class="formRows">
                        <label for="userName"><strong>Потребителско име</strong></label>
                        <input type="text" id="userName" name="persUserName" value="${user.userName}" onfocus="this.style.backgroundColor='#f4f4f4'" onblur="this.style.backgroundColor=''" />
                    </div>
                    <div class="formRows">
                        <label for="pass"><strong>Парола</strong></label>
                        <input type="password" id="pass" name="persPass" value="" onfocus="this.style.backgroundColor='#f4f4f4'" onblur="this.style.backgroundColor=''" />
                    </div>
                    <div class="formRows">
                        <label for="firstName"><strong>Име</strong></label>
                        <input type="text" id="firstName" name="persFirstName" value="${user.FName}" onfocus="this.style.backgroundColor='#f4f4f4'" onblur="this.style.backgroundColor=''" />
                    </div>
                    <div class="formRows">
                        <label for="lastName"><strong>Фамилия</strong></label>
                        <input type="text" id="lastName" name="persLastName" value="${user.LName}" onfocus="this.style.backgroundColor='#f4f4f4'" onblur="this.style.backgroundColor=''" />
                    </div>
                    <div class="formRows">
                        <label for="emailAddr"><strong>E-mail</strong></label>
                        <input type="text" id="emailAddr" name="persEmail" value="${user.email}" onfocus="this.style.backgroundColor='#f4f4f4'" onblur="this.style.backgroundColor=''" />
                    </div>
                    <div class="nextStep"> 
                        <input type="submit" class="nextStep" name="submit" value=" Продължи " /> 
                        <input type="hidden" name="step" value="2" />
                    </div>
                </div>
            </form>
           
            <c:remove var="user" scope="session" />
            
        </div>
    </body>
</html>

